package com.zq.spring.service;

import com.zq.spring.config.PrePostConfig;
import com.zq.spring.service.impl.BeanWayService;
import com.zq.spring.service.impl.JSR250WayServiece;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/24 9:43
 * @Version 1.0
 */

public class PrePostTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(PrePostConfig.class);
        BeanWayService beanWayService = annotationConfigApplicationContext.getBean(BeanWayService.class);
        JSR250WayServiece jsr250WayServiece =  annotationConfigApplicationContext.getBean(JSR250WayServiece.class);
        annotationConfigApplicationContext.close();

    }

}
